// *Author：jxx
// *Contact：283591387@qq.com
// *代码由框架生成,任何更改都可能导致被代码生成器覆盖
export default function(){
    const table = {
        key: 'ComPortID',
        footer: "Foots",
        cnName: '串口通讯',
        name: 'Comport',
        url: "/Comport/",
        sortName: "ComPortID"
    };
    const tableName = table.name;
    const tableCNName = table.cnName;
    const newTabEdit = false;
    const key = table.key;
    const editFormFields = {"AppName":"","PortName":"","BaudRate":""};
    const editFormOptions = [[{"title":"设备名称","required":true,"field":"AppName"},
                               {"title":"串口号/IP","required":true,"field":"PortName"}],
                              [{"title":"波特率/端口","required":true,"field":"BaudRate"}]];
    const searchFormFields = {"AppName":"","PortName":"","BaudRate":""};
    const searchFormOptions = [[{"title":"设备名称","field":"AppName","type":"like"},{"title":"串口号/IP","field":"PortName","type":"like"}],[{"title":"波特率/端口","field":"BaudRate","type":"text"}]];
    const columns = [{field:'ComPortID',title:'Id',type:'long',width:110,hidden:true,readonly:true,require:true,align:'left'},
                       {field:'AppName',title:'设备名称',type:'string',width:110,require:true,align:'left'},
                       {field:'PortType',title:'串口类型',type:'int',sort:true,width:110,require:true,align:'left'},
                       {field:'PortName',title:'串口号/IP',type:'string',width:110,require:true,align:'left'},
                       {field:'BaudRate',title:'波特率/端口',type:'string',sort:true,width:110,require:true,align:'left'},
                       {field:'Smac',title:'锁MAC',type:'string',width:100,align:'left'}];
    const detail ={columns:[]};
    const details = [];

    return {
        table,
        key,
        tableName,
        tableCNName,
        newTabEdit,
        editFormFields,
        editFormOptions,
        searchFormFields,
        searchFormOptions,
        columns,
        detail,
        details
    };
}